/*
 * @Author: yuanming
 * @Date: 2024-08-27 11:05:56
 * @LastEditors: yuanming
 * @LastEditTime: 2024-08-27 13:58:03
 * @Description: fileDescription
 */
import { nowSize } from '@/utils/index'

export const lineAreaOption = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow',
            textStyle: {
                color: '#fff',
                fontSize: nowSize(14),
            },
        },
    },
    legend: {
        type: 'plain',
        icon: 'circle',
        bottom: '0%',
        left: 'center',
        itemWidth: nowSize(14),
        itemHeight: nowSize(14),
        textStyle: {
            color: '#D7EAF2',
        },
    },
    grid: {
        left: '0%',
        top: '15%',
        right: '8%',
        bottom: '0%',
        containLabel: true,
    },
    xAxis: {
        type: 'category',
        boundaryGap: false, // 坐标轴两边留白
        data: [],
        axisLabel: {
            show: true,
            color: '#051024',
            fontStyle: 'normal',
            fontFamily: '微软雅黑',
            fontSize: nowSize(14),
        },
        axisTick: {
            // 坐标轴刻度相关设置。
            show: false,
        },
        axisLine: {
            // 坐标轴轴线相关设置
            show: true,
            lineStyle: {
                color: '#000',
            },
        },
    },
    yAxis: [
        {
            type: 'value',
            name: '',
            nameTextStyle: {
                color: '#051024',
            },
            axisLabel: {
                color: '#051024',
                fontStyle: 'normal',
                fontFamily: '微软雅黑',
                fontSize: nowSize(14),
            },
            axisLine: {
                show: true,
                lineStyle: {
                    color: '#000',
                },
            },
            axisTick: {
                show: false,
            },
            splitLine: {
                show: true,
                lineStyle: {
                    color: '#2A5073',
                    type: 'dashed',
                },
            },
        },
    ],
    series: [],
}